def getRateByXY(X,Y):
    rate = 0
    if(X is None or Y is None):
        return rate
    if Y != 0:
        if X > Y:
            rate = 100
        else:
            rate = round(X* 100 / Y, 2)
            rate = round(X / Y, 4) * 100
    return rate

if __name__ == '__main__':
    rate = getRateByXY(152,1078)
    print(rate)